﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="GENERATION_BY_FUEL_TYPE_TABLE">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="INST">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="FUEL">
                <xs:complexType>
                  <xs:attribute name="TYPE" type="xs:string" use="required" />
                  <xs:attribute name="IC" type="xs:string" use="required" />
                  <xs:attribute name="VAL" type="xs:unsignedShort" use="required" />
                  <xs:attribute name="PCT" type="xs:decimal" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="AT" type="xs:string" use="required" />
            <xs:attribute name="TOTAL" type="xs:unsignedShort" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="HH">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="FUEL">
                <xs:complexType>
                  <xs:attribute name="TYPE" type="xs:string" use="required" />
                  <xs:attribute name="IC" type="xs:string" use="required" />
                  <xs:attribute name="VAL" type="xs:unsignedShort" use="required" />
                  <xs:attribute name="PCT" type="xs:decimal" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="SD" type="xs:date" use="required" />
            <xs:attribute name="SP" type="xs:unsignedByte" use="required" />
            <xs:attribute name="AT" type="xs:string" use="required" />
            <xs:attribute name="TOTAL" type="xs:unsignedShort" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="LAST24H">
          <xs:complexType>
            <xs:sequence>
              <xs:element maxOccurs="unbounded" name="FUEL">
                <xs:complexType>
                  <xs:attribute name="TYPE" type="xs:string" use="required" />
                  <xs:attribute name="IC" type="xs:string" use="required" />
                  <xs:attribute name="VAL" type="xs:unsignedInt" use="required" />
                  <xs:attribute name="PCT" type="xs:decimal" use="required" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="FROM_SD" type="xs:date" use="required" />
            <xs:attribute name="FROM_SP" type="xs:unsignedByte" use="required" />
            <xs:attribute name="AT" type="xs:string" use="required" />
            <xs:attribute name="TOTAL" type="xs:unsignedInt" use="required" />
          </xs:complexType>
        </xs:element>
        <xs:element name="LAST_UPDATED">
          <xs:complexType>
            <xs:attribute name="AT" type="xs:string" use="required" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>